#此处指定可执行文件的名称，这个可执行程序program就是用来测试library的用例
add_compile_options(-std=c++17)
add_compile_options(-Werror)
#set(CMAKE_CXX_USE_PCH, ON)
#set(CMAKE_CXX_PRECOMPILED_HEADER_SOURCE, ${PROJECT_SOURCE_DIR}/"src/hzpch.h")
#set(CMAKE_CXX_PRECOMPILED_HEADER_CONTENTS "// 预编译头文件内容")
add_executable(game SandboxApp.cpp)
#头文件目录
#include_directories(E:/c++\RoundEngineWork2/engine/cmake-build-debug)
#link_directories(E:/c++\RoundEngineWork2/engine/cmake-build-debug)

# 引用自己开发的library，第三方库，共享库，静态库等
#target_include_directories(game)  # target_include_directories：给目标指定头文件包含路径
#target_link_libraries(game engine) # target_link_libraries：给目标指定链接的第三方库的路径位置

#set(INC_DIR D:/3_RunningConfig/1_MinGW/libxl-win-4.2.0/libxl-4.2.0/include_cpp)
#ADD_SUBDIRECTORY(${PROJECT_SOURCE_DIR}/game/*.dll)
#link_directories(${PROJECT_SOURCE_DIR}/game/libengine.dll)
#add_definitions(RE_PLATFORM_WINDOWS)
#add_definitions(RE_BUILD_DLL)
target_link_libraries(game ${PROJECT_SOURCE_DIR}/bin/libengine.dll)

#额外包含目录，自动招头文件
target_include_directories(game PRIVATE ${PROJECT_SOURCE_DIR}/src)
#w外部库
target_include_directories(game PUBLIC
        ${PROJECT_SOURCE_DIR}/vendor/spdlog/include

)
#target_link_libraries(game engine)